import request from '@/utils/request'

// 查询江湖列表
export function listHairRunescape(query) {
  return request({
    url: '/system/hairRunescape/list',
    method: 'get',
    params: query
  })
}

// 查询江湖详细
export function getHairRunescape(id) {
  return request({
    url: '/system/hairRunescape/' + id,
    method: 'get'
  })
}

// 新增江湖
export function addHairRunescape(data) {
  return request({
    url: '/system/hairRunescape',
    method: 'post',
    data: data
  })
}

// 修改江湖
export function updateHairRunescape(data) {
  return request({
    url: '/system/hairRunescape',
    method: 'put',
    data: data
  })
}

// 删除江湖
export function delHairRunescape(id) {
  return request({
    url: '/system/hairRunescape/' + id,
    method: 'delete'
  })
}
